const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const unitSchema = new Schema({
    name: String,
    code: String,
    stockCode: String,
    belong: {
        type: Schema.Types.ObjectId,
        ref: 'Board'
    },
    klines: Array
});


module.exports = mongoose.model('Unit', unitSchema);
